﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Text;

namespace Tauren.Form.Infrastructure
{
    [DebuggerDisplay("{" + nameof(GetDebuggerDisplay) + "(),nq}")]
    public class ApiVersionException : Exception
    {
        public ApiVersionException() : base("接口不支持当前版本！")
        {
        }

        public ApiVersionException(string message) : base(message)
        {
        }

        public ApiVersionException(string message, Exception innerException) : base(message, innerException)
        {
        }

        protected ApiVersionException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }

        private string GetDebuggerDisplay()
        {
            return "接口不支持当前版本";
        }
    }
}
